/**
 * 判断字符串是否为空
 * @param str
 * @returns {boolean}
 */
export function strIsEmpty(str) {
    return str === null || str === undefined || str === '' || str.trim() === '';
}

export function  isEmpty(obj) {
    return obj === null || obj === undefined ;
}

export function showStr(str) {
    return strIsEmpty(str) ? '' : str;
}

/**
 * 判断数字是否小于0
 * @param str
 * @returns {boolean}
 */
export function numberIsNotOverZero(str) {
    return str === null || str === undefined || str <  0;
}

/**
 * 判断数字不为空
 * @param value
 * @returns {boolean}
 */
export function isNotEmptyNumber(value) {
    return typeof value === 'number' && !isNaN(value);
}

